package Objects;

import java.util.Random;

public class Dice {
	private int a;		//value of dice
	public Dice(){
		a = 1;
	}
	public int generator(){
		Random generator = new Random();
		a = generator.nextInt(6) + 1;
		generator = null;
		return a;
	}
	public int getA() {
		return a;
	}
}
